/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/09/10
*/
#ifndef __EDUI_SPLIT_H__
#define __EDUI_SPLIT_H__

#include "../defines.h"
#include "String.h"

EDUI_NAMESPACE_BEGIN

class EDUI_API Split
{
public:
    Split(const char* text, const char* split);
    ~Split();

    struct Attribute
    {
        String value;
    };

    Attribute* First();
    Attribute* Next();
private:
    String m_text;
    String m_split;
    int m_pos;
    bool m_bend;
    Attribute m_attr;
};

EDUI_NAMESPACE_END

#endif